package cate.common.table.pvp.guildrace;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class GuildRaceInspireRow extends ERow {

    @NoteField(value = "鼓舞金币消耗")
    public String m0;

    @NoteField(value = "鼓舞攻击加成")
    public double buffAr;

    @NoteField(value = "金币概率")
    public int m0p;

    @NoteField(value = "鼓舞碎钻消耗")
    public String m1;

    @NoteField(value = "碎钻概率")
    public int m1p;

    @NoteField(value = "最大层数")
    public int maxLayer;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.m0 = xrw.getString("鼓舞金币消耗");
        this.m1 = xrw.getString("鼓舞碎钻消耗");
        this.buffAr = xrw.getDouble("鼓舞攻击加成");
        this.m0p = xrw.getInteger("金币概率", 1000);
        this.m1p = xrw.getInteger("碎钻概率", 1000);
        this.maxLayer = xrw.getInteger("最大层数");
    }
}
